<style>
.note { background-color:#FFFFCC; }
</style>
<h5 class="list_title"><a href="index_new.php" target="_blank" class="list_title_in">爽洁版模式下的边栏号外管理</a></h5>

<?php
@ require ('writable/extra/inc/set/img.php');
?>
<form action="?post=extra" method="post" target="_blank">
  <table width="100%" border="0" cellspacing="5" cellpadding="0" id="po0" name="po0">
    <tr>
      <td width="200" align="right">边栏 <?php echo $extra['name']; ?><a href="writable/extra/s_news_img.html" target="_blank" style="font-size:12px">预览</a> 采集设置：</td>
      <td>
<?php
$text = '';
  $text .= '<div id="extra_img" class="note">';
  $text .= '<b>采集源URL：</b><br />
$extra[\'url\']=<input type="text" name="extra_url" value="'.$extra['url'].'" size="40" /><br />';

  if ((string)$extra['time_step'] == '' || !is_numeric($extra['time_step'])) {
      $p_time = ' checked="checked"';
  } else {
      if ($extra['time_step'] > 0) {
        $p_time1 = ' checked="checked"';
        $p_time_val = abs($extra['time_step']);
        $p_time_key = '';
      } else {
        $p_time0 = ' checked="checked"';
        $p_time_val = '';
        $p_time_key = abs($extra['time_step']);
      }
  }
  $text .= '<b>采集刷新时效：</b><br />
$extra[\'time_step\']=<input type="radio" name="p_time" id="p_time_img" value="" onclick="$(\'p_time_key_img\').value=$(\'p_time_val_img\').value=\'\';"'.$p_time.'>采集完后永不刷新<input type="radio" name="p_time" id="p_time_img0" value="0" onclick="$(\'p_time_val_img\').value=\'\';"'.$p_time0.'>以每天<input type="text" name="p_time_key" id="p_time_key_img" size="1" value="'.$p_time_key.'" onclick="$(\'p_time_img\').checked=$(\'p_time_img1\').checked=false;$(\'p_time_img0\').checked=true;" onblur="isDigit(this,\''.$p_time_key.'\',1);">时

<input type="radio" name="p_time" id="p_time_img1" value="1" onclick="$(\'p_time_key_img\').value=\'\';"'.$p_time1.'>以<input type="text" name="p_time_val" id="p_time_val_img" size="1" value="'.$p_time_val.'" onclick="$(\'p_time_img\').checked=$(\'p_time_img0\').checked=false;$(\'p_time_img1\').checked=true;" onblur="isDigit(this,\''.$p_time_val.'\',0);">分钟间隔

<br />';
  unset($p_time, $p_time1, $p_time_val, $p_time_key, $p_time0);
  $text .= '<b>采集图片生成宽度：</b><br />
$extra[\'w\']=<input type="text" name="extra_w" value="'.$extra['w'].'" onblur="isDigit(this,\''.$extra['w'].'\',0);" size="5" /><br />';
  $text .= '<b>采集图片储存目录：</b><br />
$extra[\'img_d\']=writable/extra/inc/'.$extra['img_d'].'<br />';
  $extra['code_php'] = file_get_contents('writable/extra/inc/code/img_php.php');
  $extra['code_php'] = str_replace('&', '&amp;', $extra['code_php']);
  $extra['code_php'] = str_replace('<', '&lt;', $extra['code_php']);
  $extra['code_php'] = str_replace('>', '&gt;', $extra['code_php']);
  $text .= '<b>采集运行PHP源码（必须本地测试好，否则会造成该模块崩溃）：</b><br /><div class="greenword">
变量 $news_txt 为抓取的整个网页内容，所有操作以其为基础<br />
变量 $text 为加工后，我们需要的内容，即图片列表组<br />
其中自定义函数 write_file （参见readonly/function/write_file.php）为写入文件<br />
其中自定义函数 run_img_resize （参见readonly/function/run_img_resize.php）为转变图片大小</div>
<textarea name="extra_code_php" rows="5" style="width:99%;">'.$extra['code_php'].'</textarea>';

  $extra['code_css-js'] = file_get_contents('writable/extra/inc/code/img_css-js.php');
  $extra['code_css-js'] = str_replace('&', '&amp;', $extra['code_css-js']);
  $extra['code_css-js'] = str_replace('<', '&lt;', $extra['code_css-js']);
  $extra['code_css-js'] = str_replace('>', '&gt;', $extra['code_css-js']);
  $text .= '<b>相关CSS及JS代码：</b><br />
<textarea name="extra_code_css-js" rows="5" style="width:99%;">'.$extra['code_css-js'].'</textarea>';

  $text .= '</div>';

echo $text;
unset($extra);
$text = '';
?></td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button></td>
    </tr>
  </table>
  <input type="hidden" name="act" value="img" />
</form>

<?php
@ require ('writable/extra/inc/set/li.php');
?>
<form action="?post=extra" method="post" target="_blank">
  <table width="100%" border="0" cellspacing="5" cellpadding="0" id="po1" name="po1">
    <tr>
      <td width="200" align="right">边栏 <?php echo $extra['name']; ?><a href="writable/extra/s_news_li.html" target="_blank" style="font-size:12px">预览</a> 采集设置：</td>
      <td><?php
$text = '';
  $text .= '<div id="extra_li" class="note">';
  $text .= '<b>采集源URL：</b><br />
$extra[\'url\']=<input type="text" name="extra_url" value="'.$extra['url'].'" size="40" /><br />';
  if ((string)$extra['time_step'] == '' || !is_numeric($extra['time_step'])) {
      $p_time = ' checked="checked"';
  } else {
      if ($extra['time_step'] > 0) {
        $p_time1 = ' checked="checked"';
        $p_time_val = abs($extra['time_step']);
        $p_time_key = '';
      } else {
        $p_time0 = ' checked="checked"';
        $p_time_val = '';
        $p_time_key = abs($extra['time_step']);
      }
  }
  $text .= '<b>采集刷新时效：</b><br />
$extra[\'time_step\']=<input type="radio" name="p_time" id="p_time_li" value="" onclick="$(\'p_time_key_li\').value=$(\'p_time_val_li\').value=\'\';"'.$p_time.'>采集完后永不刷新<input type="radio" name="p_time" id="p_time_li0" value="0" onclick="$(\'p_time_val_li\').value=\'\';"'.$p_time0.'>以每天<input type="text" name="p_time_key" id="p_time_key_li" size="1" value="'.$p_time_key.'" onclick="$(\'p_time_li\').checked=$(\'p_time_li1\').checked=false;$(\'p_time_li0\').checked=true;" onblur="isDigit(this,\''.$p_time_key.'\',1);">时

<input type="radio" name="p_time" id="p_time_li1" value="1" onclick="$(\'p_time_key_li\').value=\'\';"'.$p_time1.'>以<input type="text" name="p_time_val" id="p_time_val_li" size="1" value="'.$p_time_val.'" onclick="$(\'p_time_li\').checked=$(\'p_time_li0\').checked=false;$(\'p_time_li1\').checked=true;" onblur="isDigit(this,\''.$p_time_val.'\',0);">分钟间隔

<br />';
  unset($p_time, $p_time1, $p_time_val, $p_time_key, $p_time0);
  $text .= '<b>预显示内容ID：</b><br />
$extra[\'hot\']=<input type="text" name="extra_hot" value="'.$extra['hot'].'" size="5" /> 抓取的内容中，最前面的希望显示的内容设置一个标签（示例即 id="'.$extra['hot'].'"），预显示该内容，其它内容随鼠标浮到时显示出来；极其建议设置此项，否则内容多时前台加载时可能被撑破<br />';
  $text .= '<b>采集图片储存目录：</b><br />
$extra[\'img_d\']='.$extra['img_d'].'<br />';
  $extra['code_php'] = file_get_contents('writable/extra/inc/code/li_php.php');
  $extra['code_php'] = str_replace('&', '&amp;', $extra['code_php']);
  $extra['code_php'] = str_replace('<', '&lt;', $extra['code_php']);
  $extra['code_php'] = str_replace('>', '&gt;', $extra['code_php']);

  $text .= '<b>采集运行PHP源码（必须本地测试好，否则会造成该模块崩溃）：</b><br />
<textarea name="extra_code_php" rows="5" style="width:99%;">'.$extra['code_php'].'</textarea>';

  $extra['code_css-js'] = file_get_contents('writable/extra/inc/code/li_css-js.php');
  $extra['code_css-js'] = str_replace('&', '&amp;', $extra['code_css-js']);
  $extra['code_css-js'] = str_replace('<', '&lt;', $extra['code_css-js']);
  $extra['code_css-js'] = str_replace('>', '&gt;', $extra['code_css-js']);
  $text .= '<b>相关CSS及JS代码：</b><br />
<textarea name="extra_code_css-js" rows="5" style="width:99%;">'.$extra['code_css-js'].'</textarea>';

  $text .= '</div>';

echo $text;
unset($extra);
unset($text);
?></td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button> </td>
    </tr>
  </table>
  <input type="hidden" name="act" value="li" />
</form>

<?php
@ require ('writable/extra/inc/set/more.php');
?>
<form action="?post=extra" method="post" target="_blank">
  <table width="100%" border="0" cellspacing="5" cellpadding="0" id="po123" name="po123">
    <tr>
      <td width="200" align="right">底栏 <?php echo $extra['name']; ?><a href="writable/extra/s_news_more.html" target="_blank" style="font-size:12px">预览</a> 采集设置：</td>
      <td><?php
@ require ('writable/extra/inc/set/more.php');

$text = '';
  $text .= '<div id="extra_more" class="note">';
  $text .= '<b>采集源URL：</b><br />
$extra[\'url\']=<input type="text" name="extra_url" value="'.$extra['url'].'" size="40" /><br />';

  if ((string)$extra['time_step'] == '' || !is_numeric($extra['time_step'])) {
      $p_time = ' checked="checked"';
  } else {
      if ($extra['time_step'] > 0) {
        $p_time1 = ' checked="checked"';
        $p_time_val = abs($extra['time_step']);
        $p_time_key = '';
      } else {
        $p_time0 = ' checked="checked"';
        $p_time_val = '';
        $p_time_key = abs($extra['time_step']);
      }
  }
  $text .= '<b>采集刷新时效：</b><br />
$extra[\'time_step\']=<input type="radio" name="p_time" id="p_time_more" value="" onclick="$(\'p_time_key_more\').value=$(\'p_time_val_more\').value=\'\';"'.$p_time.'>采集完后永不刷新<input type="radio" name="p_time" id="p_time_more0" value="0" onclick="$(\'p_time_val_more\').value=\'\';"'.$p_time0.'>以每天<input type="text" name="p_time_key" id="p_time_key_more" size="1" value="'.$p_time_key.'" onclick="$(\'p_time_more\').checked=$(\'p_time_more1\').checked=false;$(\'p_time_more0\').checked=true;" onblur="isDigit(this,\''.$p_time_key.'\',1);">时

<input type="radio" name="p_time" id="p_time_more1" value="1" onclick="$(\'p_time_key_more\').value=\'\';"'.$p_time1.'>以<input type="text" name="p_time_val" id="p_time_val_more" size="1" value="'.$p_time_val.'" onclick="$(\'p_time_more\').checked=$(\'p_time_more0\').checked=false;$(\'p_time_more1\').checked=true;" onblur="isDigit(this,\''.$p_time_val.'\',0);">分钟间隔

<br />';
  unset($p_time, $p_time1, $p_time_val, $p_time_key, $p_time0);
  $text .= '<b>采集图片储存目录：</b><br />
$extra[\'img_d\']=writable/extra/inc/'.$extra['img_d'].'<br />';
  $extra['code_php'] = file_get_contents('writable/extra/inc/code/more_php.php');
  $extra['code_php'] = str_replace('&', '&amp;', $extra['code_php']);
  $extra['code_php'] = str_replace('<', '&lt;', $extra['code_php']);
  $extra['code_php'] = str_replace('>', '&gt;', $extra['code_php']);
  $text .= '<b>采集运行PHP源码（必须本地测试好，否则会造成该模块崩溃）：</b><br /><div class="greenword">
变量 $news_txt 为抓取的整个网页内容，所有操作以其为基础<br />
变量 $text 为加工后，我们需要的内容，即图片列表组<br />
其中自定义函数 write_file （参见readonly/function/write_file.php）为写入文件<br />
<textarea name="extra_code_php" rows="5" style="width:99%;">'.$extra['code_php'].'</textarea>';

  $extra['code_css-js'] = file_get_contents('writable/extra/inc/code/more_css-js.php');
  $extra['code_css-js'] = str_replace('&', '&amp;', $extra['code_css-js']);
  $extra['code_css-js'] = str_replace('<', '&lt;', $extra['code_css-js']);
  $extra['code_css-js'] = str_replace('>', '&gt;', $extra['code_css-js']);
  $text .= '<b>相关CSS及JS代码：</b><br />
<textarea name="extra_code_css-js" rows="5" style="width:99%;">'.$extra['code_css-js'].'</textarea>';

  $text .= '</div>';

echo $text;
unset($extra);
unset($text);
?></td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button></td>
    </tr>
  </table>
  <input type="hidden" name="act" value="more" />
</form>

<p>&nbsp;</p>

<h5 class="list_title"><a href="index_menhu.php" target="_blank" class="list_title_in" id="po2" name="po2">流行版模式下的边栏及底部号外管理</a></h5>
<div class="note" style="display:block;">以下内容为采集，可能会随调用的目标网站的改版而失效，如有此情况，请及时到162100.com官方查看，或联系源码作者索要更新。</div>
<div class="note" style="display:block;">请注意上下栏代码可能互相交融、关联，故在一起<a href="writable/extra/360.php" target="_blank">预览</a></div>

<form action="?post=extra" method="post" target="_blank">
<?php
  $extra_360 = file_get_contents('writable/extra/inc/code/360side_css-js.php');
  $extra_360 = str_replace('&', '&amp;', $extra_360);
  $extra_360 = str_replace('<', '&lt;', $extra_360);
  $extra_360 = str_replace('>', '&gt;', $extra_360);
?>
  <table width="100%" border="0" cellspacing="5" cellpadding="0" id="360side" name="360side">
    <tr>
      <td width="200" align="right">边栏 猜你爱看 等采集设置：</td>
      <td><b>相关引用代码：</b><br />
<textarea name="extra_code_css-js" rows="5" style="width:99%;"><?php echo $extra_360; unset($extra_360); ?></textarea></td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button> </td>
    </tr>
  </table>
  <input type="hidden" name="act" value="360side" />
</form>
<form action="?post=extra" method="post" target="_blank">
<?php
  $extra_360 = file_get_contents('writable/extra/inc/code/360bottom_css-js.php');
  $extra_360 = str_replace('&', '&amp;', $extra_360);
  $extra_360 = str_replace('<', '&lt;', $extra_360);
  $extra_360 = str_replace('>', '&gt;', $extra_360);
?>
  <table width="100%" border="0" cellspacing="5" cellpadding="0" id="360bottom" name="360bottom">
    <tr>
      <td width="200" align="right">底部 放松一下 等采集设置：</td>
      <td><b>相关引用代码：</b><br />
<textarea name="extra_code_css-js" rows="5" style="width:99%;"><?php echo $extra_360; unset($extra_360); ?></textarea></td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button> </td>
    </tr>
  </table>
  <input type="hidden" name="act" value="360bottom" />
</form>

<h5 class="list_title"><a class="list_title_in" id="po22" name="po22">边栏手机充值</a></h5>
<form action="?post=extra" method="post" target="_blank">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="200" align="right">手机充值：</td>
      <td>

<?php
if (file_exists('writable/require/chongzhi.txt')) {
  if (!$chongzhi = @file('writable/require/chongzhi.txt')) {
    $chongzhi = array(1, 1, 'mobile', 'price', 'http://chongzhi.360.cn/mobile/cz?a=7088');
  }
  echo '<div class="note note2">';
  echo $chongzhi[0] == 1 ? '<input type="radio" class="radio" name="chongzhi_open" value="1" checked="checked" />已安装<br /><input type="radio" class="radio" name="chongzhi_open" value="0" />卸载' : '<input type="radio" class="radio" name="chongzhi_open" value="0" checked="checked" />未安装<br />
<input type="radio" class="radio" name="chongzhi_open" value="1" />安装';

?>
<div style="height:0; margin:10px; overflow:hidden; border-bottom:1px #666666 dotted;"></div>
充值处理页面URL <input type="text" name="chongzhi" value="<?php
echo $chongzhi[4];
?>" size="40" /><br />
表单文本域「手机号码」标签名 <input type="text" name="mobile" value="<?php echo $chongzhi[2]; ?>" size="10" /><br />
表单文本域「充值金额」标签名 <input type="text" name="price" value="<?php echo $chongzhi[3]; ?>" size="10" />
<div style="height:0; margin:10px; overflow:hidden; border-bottom:1px #666666 dotted;"></div>
<input type="checkbox" class="checkbox" name="chongzhi_for" value="1"<?php echo $chongzhi[1]==1?' checked="checked"':''; ?> />适用于所有首页模式
<?php
  echo '</div';
} else {
  echo '<span class="redword">该版本未安装</span>[欲安装请联系作者定制]';
}

?>
</td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button> </td>
    </tr>
  </table>
  <input type="hidden" name="act" value="chongzhi" />
</form>

<p>&nbsp;</p>

<h5 class="list_title"><a href="index_new.php" target="_blank" class="list_title_in" id="po3" name="po3">边栏其它管理</a></h5>

<form action="?post=extra" method="post" target="_blank">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="200" align="right">边栏新录网站开关：</td>
      <td><?php
echo file_exists('readonly/require/newsite.php') ? '<div class="note note2">'.(file_exists('writable/require/newsite.php') ? '<input type="radio" class="radio" name="newsite" value="1" checked="checked" />已安装<br /><input type="radio" class="radio" name="newsite" value="0" />卸载' : '<input type="radio" class="radio" name="newsite" value="0" checked="checked" />未安装<br />
<input type="radio" class="radio" name="newsite" value="1" />安装').'</div>' : '<span class="redword">该版本未安装</span>[欲安装请联系作者定制]'; ?>
</td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button> </td>
    </tr>
  </table>
  <input type="hidden" name="act" value="newsite" />
</form>
<form action="?post=extra" method="post" target="_blank">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="200" align="right">边栏信息窗开关：</td>
      <td><?php
echo file_exists('readonly/require/newinfo.php') ? '<div class="note note2">'.(file_exists('writable/require/newinfo.php') ? '<input type="radio" class="radio" name="newinfo" value="1" checked="checked" />已安装：<br />
　　信息窗列表调用文件的URL：<input type="text" name="newinfo_url[0]" value="'.$web['newinfo_url'][0].'" size="50" maxlength="" /><br />
　　信息窗“我要发布”的URL：<input type="text" name="newinfo_url[1]" value="'.$web['newinfo_url'][1].'" size="50" maxlength="" /><br />

<input type="radio" class="radio" name="newinfo" value="0" />卸载' : '<input type="radio" class="radio" name="newinfo" value="0" checked="checked" />未安装<br />
<input type="radio" class="radio" name="newinfo" value="1" />安装：<br />
信息窗列表调用文件的URL：<input type="text" name="newinfo_url[0]" value="'.$web['newinfo_url'][0].'" size="50" maxlength="" /><br />
信息窗“我要发布”的URL：<input type="text" name="newinfo_url[1]" value="'.$web['newinfo_url'][1].'" size="50" maxlength="" />
').'<br />还没有自己的信息发布系统？点击<a href="http://www.162100.com/down/#162100FIA" target="_blank">下载162100论坛/信息/文章三合一系统</a><div  class="redword" style="font-size:12px; line-height:normal;">注意：<br />
1、<br />
2、添加信息窗地址可填写相对路径，如“bbs/接口文件”或“info/接口文件”；或绝对网址，如“http://info.162100.com/接口文件”。前提是此路径下安装了“162100论坛/信息/文章三合一系统”或者“别的程序系统”，否则系统出错。默认调用官方的。</div></div>' : '<span class="redword">该版本未安装</span>[欲安装请联系作者定制]'; ?>
</td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" class="send2" style="border:none;">提交</button> </td>
    </tr>
  </table>
  <input type="hidden" name="act" value="newinfo" />
</form>










